

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'studentInfo.label', default: 'StudentInfo')}" />
        <title>修改个人信息</title>
    </head>
    
    <body>
        <div class="body">
            <h1>修改个人信息</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${studentInfoInstance}">
            <div class="errors">
                <g:renderErrors bean="${studentInfoInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" name="studentInfoEdit" action="update">
                <g:hiddenField name="id" value="${studentInfoInstance?.id}" />
                <g:hiddenField name="version" value="${studentInfoInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="enname"><div class="label">英文名</div></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInfoInstance, field: 'enname', 'errors')}">
                                    <g:textField  class="inputStyle standardFormInput" name="enname" maxlength="50" value="${studentInfoInstance?.enname}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="avatar"><div class="label">头像</div></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInfoInstance, field: 'avatar', 'errors')}">
                                    <input type="hidden" name="avatar.id" id="avatarLogo" value="${studentInfoInstance?.avatar?.id}">
                                    <span class="files">
                                    <g:if test="${studentInfoInstance && studentInfoInstance.avatar.id}">
                                        <img src="/GrailsBlog/download/index/${studentInfoInstance.avatar.id}"/>
                                    </g:if>
                                    </span>
                                    <span id="upload_but" class="button">点击上传</span>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="qq"><div class="label">QQ</div></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInfoInstance, field: 'qq', 'errors')}">
                                    <g:textField  class="inputStyle standardFormInput" name="qq" maxlength="20" value="${studentInfoInstance?.qq}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="email"><div class="label">Email</div></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInfoInstance, field: 'email', 'errors')}">
                                    <g:textField  class="inputStyle standardFormInput" name="email" maxlength="150" value="${studentInfoInstance?.email}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tel"><div class="label">电话</div></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInfoInstance, field: 'tel', 'errors')}">
                                    <g:textField  class="inputStyle standardFormInput" name="tel" maxlength="20" value="${studentInfoInstance?.tel}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="interest"><div class="label">兴趣爱好</div></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInfoInstance, field: 'interest', 'errors')}">
                                    <g:textArea  class="inputStyle standardFormInput" name="interest" cols="40" rows="5" value="${studentInfoInstance?.interest}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="introduce"><div class="label">个人介绍</div></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInfoInstance, field: 'introduce', 'errors')}">
                                    <g:textArea  class="inputStyle standardFormInput" name="introduce" cols="40" rows="5" value="${studentInfoInstance?.introduce}" />
                                </td>
                            </tr>
                        
                        </tbody>
                        
                    </table>
                    <div><g:actionSubmit class="buttonStyle" value="填写完毕" action="update"/></div>
                </div>
                
            </g:form>
        </div>
        <g:javascript src="jquery/ajaxupload.js" />
        <g:javascript src="domain/studentinfo.js" />
    
    </body>
</html>
